/**
 *
 */
package com.angel.io.fileInformation;

import java.io.InputStream;

import com.angel.webapp.file.FileInformation;

/**
 * @author William
 *
 */
public class ExportFileInformation implements FileInformation{

	
	private String contentType;
	private String fileName;
	private InputStream inputStream;
	private Integer length;

	public ExportFileInformation(){
		super();
	}

	public ExportFileInformation(String contentType, String fileName, InputStream inputStream, Integer length){
		super();
		this.setContentType(contentType);
		this.setFileName(fileName);
		this.setInputStream(inputStream);
		this.setLength(length);
	}
	
	public String getContentType() {
		return this.contentType;
	}

	public String getFileName() {
		return this.fileName;
	}

	public InputStream getInputStream() {
		return this.inputStream;
	}

	public Integer getLength() {
		return this.length;
	}

	/**
	 * @param contentType the contentType to set
	 */
	protected void setContentType(String contentType) {
		this.contentType = contentType;
	}

	/**
	 * @param fileName the fileName to set
	 */
	protected void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * @param inputStream the inputStream to set
	 */
	protected void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	/**
	 * @param length the length to set
	 */
	protected void setLength(Integer length) {
		this.length = length;
	}

	public boolean hasContent() {
		return this.getInputStream() != null;
	}

}
